/*
 * Created by JFormDesigner on Wed Aug 11 04:39:09 BRT 2010
 */

package visualCAD;

import java.awt.*;
import javax.swing.*;

/**
 * @author aaa
 */
public class PlanarFaceWindowView extends JFrame {
	public PlanarFaceWindowView() {
		initComponents();
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		panel2 = new JPanel();
		label19 = new JLabel();
		nameTextField = new JTextField();
		label3 = new JLabel();
		depthSpinner = new JSpinner();
		label8 = new JLabel();
		label17 = new JLabel();
		label18 = new JLabel();
		cancelButton = new JButton();
		submitButton = new JButton();
		helpButton = new JButton();
		label20 = new JLabel();
		planarFacePanel = new JPanel();

		//======== this ========
		setTitle("Create Planar Face");
		Container contentPane = getContentPane();

		//======== panel2 ========
		{
			panel2.setLayout(new GridBagLayout());
			((GridBagLayout)panel2.getLayout()).columnWidths = new int[] {0, 0, 0, 50, 0, 0, 0, 0, 0, 0};
			((GridBagLayout)panel2.getLayout()).rowHeights = new int[] {0, 10, 0, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, 10, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0};
			((GridBagLayout)panel2.getLayout()).columnWeights = new double[] {1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
			((GridBagLayout)panel2.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

			//---- label19 ----
			label19.setText("Name:");
			panel2.add(label19, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(nameTextField, new GridBagConstraints(3, 0, 5, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label3 ----
			label3.setText("Depth:");
			panel2.add(label3, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- depthSpinner ----
			depthSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 0.1));
			panel2.add(depthSpinner, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label8 ----
			label8.setText(" mm");
			panel2.add(label8, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(label17, new GridBagConstraints(1, 10, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(label18, new GridBagConstraints(1, 15, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
		}

		//---- cancelButton ----
		cancelButton.setText("Cancel");

		//---- submitButton ----
		submitButton.setText("Submit");

		//---- helpButton ----
		helpButton.setText("Help");

		//---- label20 ----
		label20.setText("Status:");

		//======== planarFacePanel ========
		{
			planarFacePanel.setLayout(new BorderLayout());
		}

		GroupLayout contentPaneLayout = new GroupLayout(contentPane);
		contentPane.setLayout(contentPaneLayout);
		contentPaneLayout.setHorizontalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addContainerGap()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addComponent(panel2, GroupLayout.PREFERRED_SIZE, 308, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(planarFacePanel, GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE))
						.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
							.addComponent(label20)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 454, Short.MAX_VALUE)
							.addComponent(helpButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(submitButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(cancelButton)))
					.addContainerGap())
		);
		contentPaneLayout.setVerticalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addContainerGap()
							.addComponent(panel2, GroupLayout.PREFERRED_SIZE, 390, GroupLayout.PREFERRED_SIZE))
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addGap(20, 20, 20)
							.addComponent(planarFacePanel, GroupLayout.PREFERRED_SIZE, 446, GroupLayout.PREFERRED_SIZE)))
					.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 19, Short.MAX_VALUE)
					.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
						.addComponent(cancelButton)
						.addComponent(submitButton)
						.addComponent(helpButton)
						.addComponent(label20))
					.addContainerGap())
		);
		pack();
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	private JPanel panel2;
	private JLabel label19;
	public JTextField nameTextField;
	private JLabel label3;
	public JSpinner depthSpinner;
	private JLabel label8;
	private JLabel label17;
	private JLabel label18;
	public JButton cancelButton;
	public JButton submitButton;
	public JButton helpButton;
	private JLabel label20;
	public JPanel planarFacePanel;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
